﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CFrame.Common;

/*
 * 脚本功能：所有管理器的基类
 * 编写日期：2018.12.13
 * 编写人：HYZ
 */
namespace CFrame.Manager
{
    public abstract class BaseManager
    {
        protected GameMiddle game;
        public GameMiddle Game
        {
            set { game = value; }
        }

        public BaseManager()
        {

        }

        //public BaseManager(GameMiddle middle)
        //{
        //    this.game = middle;
        //}

        /// <summary>
        /// 初始化方法
        /// </summary>
        public abstract void OnInit();

        /// <summary>
        /// 每帧更新的方法
        /// </summary>
        public abstract void OnUpdate();

        /// <summary>
        /// 销毁时调用
        /// </summary>
        public abstract void OnDestroy();
    }
}
